<?php 

if(empty($_GET['scripts'])) {
      print '<h1>Access Error</h1>Sorry, this file can not be accessed directly, this is strictly forbidden!';
      exit();
}

$expiresTime = 60*60*24*7;
header("Content-type: text/javascript; charset=UTF-8");
header("Pragma: public");
header("Vary: Accept-Encoding");
header('Expires: '.gmdate('D, d M Y H:i:s', time()+$expiresTime).' GMT');

$_GET['scripts'] = 'jQuery.placeholder,'.$_GET['scripts'];

$scripts = explode(',', $_GET['scripts']);

foreach ($scripts as $f => $fv) {

      if(file_exists(dirname(__FILE__).'/'.$fv.'.js')) {

		include(dirname(__FILE__).'/'.$fv.'.js');

		}

}

exit();

?>